import require from "../tools/require.js";

export function login(data){
  return require.get("/login", {
    params: data
  })
}

export function getMeetingRoom(data){
  return require.get("/meetingroom", {
    params: data
  })
}

export function addMeetingRoom(data){
  return require.post("/meetingroom/add", data);
}

export function setMeetingRoom(data){
  return require.post("/meetingroom/set", data);
}

export function getUser(data){
  return require.get("/user", {
    params: data
  });
}

export function getTeam(data){
  return require.get("/team", {
    params: data
  });
}

export function addUser(data){
  return require.post("/user/add", data);
}

export function setUser(data){
  return require.post("/user/set", data);
}

export function delUser(data){
  return require.post("/user/del", data);
}